//
//  WHCurrentTimeTools.m
//  WHTimeTools
//
//  Created by 卫航 on 2021/10/10.
//  Copyright © 2021 11063355@qq.com. All rights reserved.
//

#import "WHCurrentTimeTools.h"

@implementation WHCurrentTimeTools
+ (NSString *)getCurrentTime{
    NSDateFormatter *formatter = [[NSDateFormatter alloc]init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSDate *datenow = [NSDate date];
    NSString *currentTime = [formatter stringFromDate:datenow];
    NSLog(@"当前时间:%@",currentTime);
    return currentTime;
}
@end
